<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Cencat SaaS - 登录</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#36CFC9',
            success: '#52C41A',
            warning: '#FAAD14',
            danger: '#FF4D4F',
            info: '#40A9FF',
            dark: '#1D2129',
            'dark-2': '#4E5969',
            'light-1': '#F2F3F5',
            'light-2': '#E5E6EB',
            'light-3': '#C9CDD4'
          },
          fontFamily: {
            inter: ['Inter', 'system-ui', 'sans-serif'],
          },
          boxShadow: {
            'card': '0 2px 14px 0 rgba(0, 0, 0, 0.06)',
            'card-hover': '0 6px 20px 0 rgba(0, 0, 0, 0.1)',
            'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
            'modal': '0 10px 30px -5px rgba(0, 0, 0, 0.1)',
          }
        },
      }
    }
  </script>
  
  <style>
    body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
    html { scroll-behavior: smooth; }
    .progress-bar { transition: width 1s ease-in-out; }
    .table-row-hover { transition: background-color 0.2s ease; }
    .table-row-hover:hover { background-color: rgba(242, 243, 245, 0.5); }
    
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
    .animate-slide-in { animation: slideIn 0.3s ease-out; }
  </style>
</head>

<body class="bg-light-1 min-h-screen flex items-center justify-center p-4">
  <div class="max-w-md w-full animate-fade-in">
    <!-- 登录卡片 -->
    <div class="bg-white rounded-xl shadow-card p-8">
      <div class="text-center mb-8">
        <div class="w-16 h-16 bg-primary rounded-lg flex items-center justify-center mx-auto mb-4">
          <i class="fa fa-cubes text-white text-2xl"></i>
        </div>
        <h1 class="text-2xl font-bold text-primary">Cencat SaaS</h1>
        <p class="text-dark-2 mt-2">多租户管理平台</p>
      </div>
      
      <form class="space-y-6">
        <div>
          <label class="block text-sm font-medium text-dark-2 mb-2">用户名或邮箱</label>
          <div class="relative">
            <i class="fa fa-user absolute left-3 top-1/2 transform -translate-y-1/2 text-dark-2"></i>
            <input type="text" class="w-full pl-10 pr-4 py-3 border border-light-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="请输入用户名或邮箱">
          </div>
        </div>
        
        <div>
          <label class="block text-sm font-medium text-dark-2 mb-2">密码</label>
          <div class="relative">
            <i class="fa fa-lock absolute left-3 top-1/2 transform -translate-y-1/2 text-dark-2"></i>
            <input type="password" class="w-full pl-10 pr-4 py-3 border border-light-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/30" placeholder="请输入密码">
            <button type="button" class="absolute right-3 top-1/2 transform -translate-y-1/2 text-dark-2 hover:text-dark">
              <i class="fa fa-eye"></i>
            </button>
          </div>
        </div>
        
        <div class="flex items-center justify-between">
          <label class="flex items-center">
            <input type="checkbox" class="rounded border-light-2 text-primary focus:ring-primary/30">
            <span class="ml-2 text-sm text-dark-2">记住我</span>
          </label>
          <a href="#" class="text-sm text-primary hover:text-primary/80 transition-all duration-300">忘记密码？</a>
        </div>
        
        <button type="submit" class="w-full bg-primary text-white py-3 rounded-lg hover:bg-primary/90 transition-all duration-300 font-medium">
          登录
        </button>
        
        <div class="text-center">
          <p class="text-sm text-dark-2">还没有账户？ <a href="#" class="text-primary hover:text-primary/80 transition-all duration-300">立即注册</a></p>
        </div>
      </form>
    </div>
    
    <!-- 页脚 -->
    <div class="text-center mt-6">
      <p class="text-xs text-dark-2">© 2025 Cencat SaaS 多租户管理平台. 保留所有权利.</p>
      <div class="flex justify-center space-x-4 mt-2">
        <a href="help.html" class="text-xs text-dark-2 hover:text-primary transition-all duration-300">帮助中心</a>
        <a href="terms.html" class="text-xs text-dark-2 hover:text-primary transition-all duration-300">服务条款</a>
        <a href="privacy.html" class="text-xs text-dark-2 hover:text-primary transition-all duration-300">隐私政策</a>
      </div>
    </div>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 密码显示/隐藏切换
      const passwordInput = document.querySelector('input[type="password"]');
      const toggleButton = document.querySelector('.fa-eye').parentElement;
      
      toggleButton.addEventListener('click', function() {
        if (passwordInput.type === 'password') {
          passwordInput.type = 'text';
          toggleButton.innerHTML = '<i class="fa fa-eye-slash"></i>';
        } else {
          passwordInput.type = 'password';
          toggleButton.innerHTML = '<i class="fa fa-eye"></i>';
        }
      });
      
      // 登录表单提交
      const loginForm = document.querySelector('form');
      loginForm.addEventListener('submit', function(e) {
        e.preventDefault();
        // 这里可以添加登录逻辑
        alert('登录成功！');
        window.location.href = 'dashboard.html';
      });
    });
  </script>
</body>
</html>